﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DoAnOOP.DataAccessLayer;
namespace DoAnOOP.BussinessLayer
{
    class clsBusThongTin_SinhVien
    {
        private DataRow info;
        public clsBusThongTin_SinhVien()
        {
            clsThongTin_SinhVien clsMyThongTin_SinhVien = new clsThongTin_SinhVien();
            info = clsMyThongTin_SinhVien.GetThongTinSV();
        }
        public string GetMSSV()
        {
            return info["MSSV"].ToString().Trim();
        }
        public string GetMatKhau()
        {
            return info["MATKHAU"].ToString().Trim();
        }
        public bool Update_MatKhau(string _MatKhau)
        {
            clsThongTin_SinhVien clsMyThongTin_SinhVien = new clsThongTin_SinhVien();
            if (_MatKhau != "")
            {
                bool check = clsMyThongTin_SinhVien.UpdateMatKhau(_MatKhau);
                return check;
            }
            return false;
        }
    }
}
